<?php

class NameForm extends Block{
	public $templatePath = __DIR__ ;
	public $templateFile = "NameForm.tpl.std.html";
	public $caption = "Name";
	public $description="";
	public $firstname="";
	public $lastname="";
	
	
	
	public function show(){
		
		$this->parseFromFile($this->templatePath."/".$this->templateFile);
		$this->firstname->name  = "{$this->oid}[firstname]";
		$this->lastname->name   = "{$this->oid}[lastname]";
		$this->firstname->value = isset($_REQUEST[$this->oid]['firstname'])?$_REQUEST[$this->oid]['firstname']:"";
		$this->lastname->value  = isset($_REQUEST[$this->oid]['lastname'])?$_REQUEST[$this->oid]['lastname']:"";
		
		return $this->replace();
	}
}

?>